package com.kinderas.numbers
{
	/**
	 * Class of trigonometry functions
	 * @author jorn.kinderas
	 * 
	 */	
	public class Trig{
		
		/**
		 * Takes degrees as a parameter and converts it into radians
		 * @param deg: Degrees
		 * @return Radian number
		 * 
		 */		
		public static function degToRad(deg:Number):Number{
			return deg * Math.PI / 180;
		}
		/**
		 * Takes radians as a parameter and converts it into degrees
		 * @param rad: Radian Number
		 * @return Numbers as degrees
		 * 
		 */		
		public static function radToDeg(rad:Number):Number{
			return rad * 180 / Math.PI;
		}
	}
}